.class Lcom/brixd/niceapp/activity/NiceAppRedirectActivity$2;
.super Ljava/lang/Object;
.source "NiceAppRedirectActivity.java"

# interfaces
.implements Lretrofit/Callback;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/activity/NiceAppRedirectActivity;->prepareToShowCommunityDetail()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lretrofit/Callback",
        "<",
        "Lorg/json/JSONObject;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/activity/NiceAppRedirectActivity;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/activity/NiceAppRedirectActivity;)V
    .registers 2
    .param p1, "this$0"    # Lcom/brixd/niceapp/activity/NiceAppRedirectActivity;

    .prologue
    .line 109
    iput-object p1, p0, Lcom/brixd/niceapp/activity/NiceAppRedirectActivity$2;->this$0:Lcom/brixd/niceapp/activity/NiceAppRedirectActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public failure(Lretrofit/RetrofitError;)V
    .registers 5
    .param p1, "arg0"    # Lretrofit/RetrofitError;

    .prologue
    .line 113
    iget-object v0, p0, Lcom/brixd/niceapp/activity/NiceAppRedirectActivity$2;->this$0:Lcom/brixd/niceapp/activity/NiceAppRedirectActivity;

    invoke-virtual {v0}, Lcom/brixd/niceapp/activity/NiceAppRedirectActivity;->getContext()Landroid/content/Context;

    move-result-object v0

    const v1, 0x7f0c00d9

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    .line 114
    iget-object v0, p0, Lcom/brixd/niceapp/activity/NiceAppRedirectActivity$2;->this$0:Lcom/brixd/niceapp/activity/NiceAppRedirectActivity;

    invoke-virtual {v0}, Lcom/brixd/niceapp/activity/NiceAppRedirectActivity;->finish()V

    .line 115
    return-void
.end method

.method public bridge synthetic success(Ljava/lang/Object;Lretrofit/client/Response;)V
    .registers 3

    .prologue
    .line 109
    check-cast p1, Lorg/json/JSONObject;

    invoke-virtual {p0, p1, p2}, Lcom/brixd/niceapp/activity/NiceAppRedirectActivity$2;->success(Lorg/json/JSONObject;Lretrofit/client/Response;)V

    return-void
.end method

.method public success(Lorg/json/JSONObject;Lretrofit/client/Response;)V
    .registers 11
    .param p1, "arg0"    # Lorg/json/JSONObject;
    .param p2, "arg1"    # Lretrofit/client/Response;

    .prologue
    .line 120
    iget-object v3, p0, Lcom/brixd/niceapp/activity/NiceAppRedirectActivity$2;->this$0:Lcom/brixd/niceapp/activity/NiceAppRedirectActivity;

    # invokes: Lcom/brixd/niceapp/activity/NiceAppRedirectActivity;->hideDialog()V
    invoke-static {v3}, Lcom/brixd/niceapp/activity/NiceAppRedirectActivity;->access$000(Lcom/brixd/niceapp/activity/NiceAppRedirectActivity;)V

    .line 121
    invoke-static {p1}, Lcom/brixd/niceapp/community/model/CommunityAppModel;->parseAppModel(Lorg/json/JSONObject;)Lcom/brixd/niceapp/community/model/CommunityAppModel;

    move-result-object v0

    .line 123
    .local v0, "appModel":Lcom/brixd/niceapp/community/model/CommunityAppModel;
    new-instance v2, Ljava/util/HashMap;

    invoke-direct {v2}, Ljava/util/HashMap;-><init>()V

    .line 124
    .local v2, "map":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/String;>;"
    const-string v3, "ArticleName"

    invoke-virtual {v0}, Lcom/brixd/niceapp/community/model/CommunityAppModel;->getTitle()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 125
    const-string v3, "ArticleId"

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0}, Lcom/brixd/niceapp/community/model/CommunityAppModel;->getId()I

    move-result v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, ""

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 126
    iget-object v3, p0, Lcom/brixd/niceapp/activity/NiceAppRedirectActivity$2;->this$0:Lcom/brixd/niceapp/activity/NiceAppRedirectActivity;

    invoke-virtual {v3}, Lcom/brixd/niceapp/activity/NiceAppRedirectActivity;->getActivity()Landroid/app/Activity;

    move-result-object v3

    const-string v4, "ClickGotoDetailFromPush"

    invoke-static {v3, v4, v2}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;Ljava/util/Map;)V

    .line 128
    new-instance v1, Landroid/content/Intent;

    iget-object v3, p0, Lcom/brixd/niceapp/activity/NiceAppRedirectActivity$2;->this$0:Lcom/brixd/niceapp/activity/NiceAppRedirectActivity;

    invoke-virtual {v3}, Lcom/brixd/niceapp/activity/NiceAppRedirectActivity;->getContext()Landroid/content/Context;

    move-result-object v3

    const-class v4, Lcom/brixd/niceapp/community/activity/CommunityDetailActivity;

    invoke-direct {v1, v3, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 129
    .local v1, "intent":Landroid/content/Intent;
    const-string v3, "AppModel"

    invoke-virtual {v1, v3, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    .line 130
    const-string v3, "FromPush"

    const/4 v4, 0x1

    invoke-virtual {v1, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 131
    iget-object v3, p0, Lcom/brixd/niceapp/activity/NiceAppRedirectActivity$2;->this$0:Lcom/brixd/niceapp/activity/NiceAppRedirectActivity;

    invoke-virtual {v3, v1}, Lcom/brixd/niceapp/activity/NiceAppRedirectActivity;->startActivity(Landroid/content/Intent;)V

    .line 132
    iget-object v3, p0, Lcom/brixd/niceapp/activity/NiceAppRedirectActivity$2;->this$0:Lcom/brixd/niceapp/activity/NiceAppRedirectActivity;

    iget-object v3, v3, Lcom/brixd/niceapp/activity/NiceAppRedirectActivity;->mHandler:Landroid/os/Handler;

    new-instance v4, Lcom/brixd/niceapp/activity/NiceAppRedirectActivity$2$1;

    invoke-direct {v4, p0}, Lcom/brixd/niceapp/activity/NiceAppRedirectActivity$2$1;-><init>(Lcom/brixd/niceapp/activity/NiceAppRedirectActivity$2;)V

    const-wide/16 v6, 0x1f4

    invoke-virtual {v3, v4, v6, v7}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 140
    return-void
.end method
